import Http from '../http';

//
export const getList = function () {
    return Http.get('/Menu/index')
}
export const getEdit = function (id: number) {
    return Http.get('/Menu/AddOrEdit', { id: id })
}
export const postAdd = function (from: any) {
    return Http.post('/Menu/Create', from)
}
export const putEdit = function (from: any) {
    return Http.put('/Menu/Edit', from)
}
export const delOne = function (id: number) {
    return Http.delete('/Menu/Delete', { id: id })
}



